|
|
|
|
|
|
|
When designing and creating forms for your application, you might want to consider what resolution users will have on their PCs. Screen resolution and color depth can be changed on every PC on which your application might run. |
|
|
|
|
|
|
|
|
Even though Visual Basic handles many Windows issues for you, this is one that it doesn't handle. In Figure 7.8, you can see what happens when a form designed at 1024×768 resolution is displayed on a PC with the resolution set at 640×480. |
|
|
|
|
|
|
|
|
Figure 7.8.
Displaying a larger form in a smaller resolution cuts off some of the form. |
|
|
|
|
|
|
|
|
If you want to create forms and controls that have the same proportions no matter what screen resolution you use, you must either design your forms at the lowest resolution or add code to your program that changes the forms. The easiest way to prevent this type of problem is to design your forms in 640×480 resolution. However, if you prefer to work at a higher resolution, you still must be aware of how your form will look at a lower resolution. |
|
|
|
|
|
|
|
|
Tip One way to stay alert to how your form will look in a lower resolution is to create a 640×480-pixel solid color bitmap and set the form's Picture property to the bitmap. This will show you where the lower-resolution form will end. However, don't forget to remove the bitmap when you are finished designing the form. |
|
|
|
|
|
|